home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / graphics / pictures.i < prev    next >
Encoding:
Text File  |  1997-11-03  |  1.9 KB  |  68 lines

  1.     IFND GRAPHICS_PICTURES_I
  2. GRAPHICS_PICTURES_I  SET  1
  3.  
  4. **
  5. **  $VER: pictures.i V0.9B
  6. **
  7. **  (C) Copyright 1996-1997 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include 'games/dpkernel.i'
  13.     ENDC
  14.  
  15. ****************************************************************************
  16.  
  17. PALETTE =  ((ID_PALETTE<<24)|(01<<16))
  18.  
  19. ****************************************************************************
  20. * Picture object.
  21.  
  22. PICVERSION   = 1
  23. TAGS_PICTURE = ((ID_SPCTAGS<<16)|ID_PICTURE)
  24.  
  25.    STRUCTURE    PIC,HEAD_SIZEOF ;[00] Standard header.
  26.     APTR    PIC_Bitmap      ;[12] Bitmap details.
  27.     APTR    PIC_Header      ;[16] Information header.
  28.     LONG    PIC_Options     ;[20] Special flags.
  29.     APTR    PIC_Palette     ;[24] Pointer to Palette.
  30.     APTR    PIC_Source      ;[28] Where this picture comes from.
  31.     WORD    PIC_ScrMode     ;[32] Intended screen mode for picture.
  32.     WORD    PIC_ScrHeight   ;[34] Screen Height (pixels)
  33.     WORD    PIC_ScrWidth    ;[36] Screen Width (pixels)
  34.  
  35.     *** Private fields below ***
  36.  
  37.     BYTE    PIC_AFlags      ;Private.
  38.     BYTE    PIC_Pad         ;Private.
  39.  
  40. PCA_Bitmap     = (TAPTR|PIC_Bitmap)
  41. PCA_Header     = (TAPTR|PIC_Header)
  42. PCA_Options    = (TLONG|PIC_Options)
  43. PCA_Palette    = (TAPTR|PIC_Palette)
  44. PCA_Source     = (TAPTR|PIC_Source)
  45. PCA_ScrMode    = (TWORD|PIC_ScrMode)
  46. PCA_ScrHeight  = (TWORD|PIC_ScrHeight)
  47. PCA_ScrWidth   = (TWORD|PIC_ScrWidth)
  48.  
  49. PCA_BitmapTags = (TSTEPIN|PIC_Bitmap)
  50.  
  51. ****************************************************************************
  52. * Picture, Anim, CardSet etc special options.
  53.  
  54. B_RESIZEX     = 0
  55. ;B_           = 1
  56. B_REMAP       = 2
  57. B_RESIZEY     = 3
  58. B_INITIALISED = 31
  59.  
  60. IMG_REMAP       = (1<<B_REMAP)       ;Allow remapping.
  61. IMG_RESIZEX     = (1<<B_RESIZEX)     ;Allow resize on X axis.
  62. IMG_RESIZEY     = (1<<B_RESIZEY)     ;Allow resize on Y axis.
  63. IMG_INITIALISED = (1<<B_INITIALISED) ;Structure has been initialised.
  64.  
  65. IMG_RESIZE      = IMG_RESIZEX|IMG_RESIZEY  ;Allow resize on both axis?
  66.  
  67.     ENDC    ;GRAPHICS_PICTURES_I
  68.